package com.carAnalysisAdmin.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.carAnalysisAdmin.common.annotation.Excel;
import com.carAnalysisAdmin.common.core.domain.BaseEntity;

/**
 * 用户和车位关联信息对象 user_spot_info
 * 
 * @author ruoyi
 * @date 2024-04-20
 */
public class UserSpotInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户和车位关联信息id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 车位编号 */
    @Excel(name = "车位编号")
    private String spotCode;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSX", shape = JsonFormat.Shape.STRING)
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd HH24:mm:ss")
    private Date warehousingTime;

    /** 用户头像 */
    @Excel(name = "用户头像")
    private String userAvatar;

    /** 消费金额 */
    @Excel(name = "消费金额")
    private String amountConsumption;

    /** 出库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSX", shape = JsonFormat.Shape.STRING)
    @Excel(name = "出库时间", width = 30, dateFormat = "yyyy-MM-dd HH24:mm:ss")
    private Date qutboundTime;
    private String floorId;

    public String getFloorId() {
        return floorId;
    }

    public void setFloorId(String floorId) {
        this.floorId = floorId;
    }

    public String getSpotCode() {
        return spotCode;
    }

    public void setSpotCode(String spotCode) {
        this.spotCode = spotCode;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setWarehousingTime(Date warehousingTime) 
    {
        this.warehousingTime = warehousingTime;
    }

    public Date getWarehousingTime() 
    {
        return warehousingTime;
    }
    public void setUserAvatar(String userAvatar) 
    {
        this.userAvatar = userAvatar;
    }

    public String getUserAvatar() 
    {
        return userAvatar;
    }
    public void setAmountConsumption(String amountConsumption) 
    {
        this.amountConsumption = amountConsumption;
    }

    public String getAmountConsumption() 
    {
        return amountConsumption;
    }
    public void setQutboundTime(Date qutboundTime) 
    {
        this.qutboundTime = qutboundTime;
    }

    public Date getQutboundTime() 
    {
        return qutboundTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("spotCode", getSpotCode())
            .append("userName", getUserName())
            .append("warehousingTime", getWarehousingTime())
            .append("userAvatar", getUserAvatar())
            .append("amountConsumption", getAmountConsumption())
            .append("qutboundTime", getQutboundTime())
            .toString();
    }
}
